import 'package:flutter/material.dart';


void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new MaterialApp(

      home: new HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new Scaffold(

      appBar: new AppBar(title: new Text(
        'DrawerDemo', style: new TextStyle(color: Colors.blueGrey),),),

      ///里面的内容可以随意自定义
      drawer: new Drawer(

        child: ListView(

          children: <Widget>[

            UserAccountsDrawerHeader(

              accountName: new Text('UserName'),
              accountEmail: new Text('UserEmail'),
              currentAccountPicture: new CircleAvatar(backgroundImage: new AssetImage('images/36.jpg'),),
              ///下三角，不写则不显示
              onDetailsPressed: (){},
              otherAccountsPictures: <Widget>[

                new Container(

                  child: Image.asset('images/37.jpg'),
                )
              ],
            ),


            ListTile(

              leading: new CircleAvatar(child: Icon(Icons.print),),
              title: new Text('个性装扮'),
            ),

            ListTile(

              leading: new CircleAvatar(child: Icon(Icons.print),),
              title: new Text('个性装扮'),
            ),

            ListTile(

              leading: new CircleAvatar(child: Icon(Icons.print),),
              title: new Text('个性装扮'),
            ),

            ListTile(

              leading: new CircleAvatar(child: Icon(Icons.print),),
              title: new Text('个性装扮'),
            ),

            new Column(

              children: <Widget>[

                new Text('商城'),
                new Text('商城'),
                new Text('商城'),
              ],
            )

          ],
        ),
      ),
    );
  }
}

